//
//  STAdvertisementCollectionViewCell.m
//  赛拓
//
//  Created by 王磊 on 8/16/16.
//  Copyright © 2016 立金所. All rights reserved.
//

#import "STAdvertisementCollectionViewCell.h"
#import "STBannerBean.h"
@interface STAdvertisementCollectionViewCell()

@property (nonatomic ,strong) UIImageView *imageView;

@end
@implementation STAdvertisementCollectionViewCell

- (void)configSubViews {
    [super configSubViews];
    
    UIImageView *imageView = [[UIImageView alloc]init];
    
    self.imageView = imageView;
    
    [self addSubview:imageView];
}

- (void)updateData:(id)data {
    STBannerBean *banner = data;
    
    [self.imageView set_BGBannerImageViewWithString:banner.imgUrl];
    
}

- (void)layoutSubviews {
    [super layoutSubviews];
    
    self.imageView.frame = self.bounds;
}

@end
